package com.ruoyi.proxy.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.proxy.mapper.ProxyRouteMapper;
import com.ruoyi.proxy.domain.ProxyRoute;
import com.ruoyi.proxy.service.IProxyRouteService;

/**
 * 代理路由Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-18
 */
@Service
public class ProxyRouteServiceImpl implements IProxyRouteService 
{
    @Autowired
    private ProxyRouteMapper proxyRouteMapper;

    /**
     * 查询代理路由
     * 
     * @param id 代理路由主键
     * @return 代理路由
     */
    @Override
    public ProxyRoute selectProxyRouteById(Long id)
    {
        return proxyRouteMapper.selectProxyRouteById(id);
    }

    /**
     * 查询代理路由列表
     * 
     * @param proxyRoute 代理路由
     * @return 代理路由
     */
    @Override
    public List<ProxyRoute> selectProxyRouteList(ProxyRoute proxyRoute)
    {
        return proxyRouteMapper.selectProxyRouteList(proxyRoute);
    }

    /**
     * 新增代理路由
     * 
     * @param proxyRoute 代理路由
     * @return 结果
     */
    @Override
    public int insertProxyRoute(ProxyRoute proxyRoute)
    {
        return proxyRouteMapper.insertProxyRoute(proxyRoute);
    }

    /**
     * 修改代理路由
     * 
     * @param proxyRoute 代理路由
     * @return 结果
     */
    @Override
    public int updateProxyRoute(ProxyRoute proxyRoute)
    {
        return proxyRouteMapper.updateProxyRoute(proxyRoute);
    }

    /**
     * 批量删除代理路由
     * 
     * @param ids 需要删除的代理路由主键
     * @return 结果
     */
    @Override
    public int deleteProxyRouteByIds(Long[] ids)
    {
        return proxyRouteMapper.deleteProxyRouteByIds(ids);
    }

    /**
     * 删除代理路由信息
     * 
     * @param id 代理路由主键
     * @return 结果
     */
    @Override
    public int deleteProxyRouteById(Long id)
    {
        return proxyRouteMapper.deleteProxyRouteById(id);
    }
}
